package com.example.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 公告表
 */
@TableName(value ="notice")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Notice implements Serializable {
    private Integer id;

    private String title;

    private String content;

    private Integer createUserId;

    private String createUserName;

    @TableField(fill = FieldFill.INSERT)  // 新增数据时自动新增当前时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer type;

    private Integer isRelease;

    private Integer isDel;

    private static final long serialVersionUID = 1L;
}